package com.easy.service;

import com.easy.bean.Schedule;
import com.easy.util.Page;

import java.util.List;
import java.util.Map;

public interface ScheduleService {
    Schedule add(Schedule schedule);

    int del(Integer id);

    Schedule edit(Schedule schedule);

    List<Schedule> all(Schedule schedule);

    Schedule one(Integer id);

    Object page(Page page, Schedule schedule);

    List<Map<String, Object>> allTimeSlot(Schedule schedule);

    int decrement_remaining(Integer id);
    int increment_remaining(Integer id);
    int update_is_deleted(Integer id, Integer is_deleted);

    // 新增：分页 + 医生名称
    Object pageWithDoctor(Page page, Schedule sch);

}

